def number_in_fibonacci(index: int, index_base: int = 1, pre1: int = 0, pre2: int = 1) -> int:
    difference = index_base - index
    if difference == 0:
        return pre1
    if difference < 0:
        return number_in_fibonacci(index - 1, index_base=index_base, pre1=pre2, pre2=pre1 + pre2)
    return number_in_fibonacci(index + 1, index_base=index_base, pre1=pre2 - pre1, pre2=pre1)
